// Copyright (c) 2014 Jonathan Magnan (http://jonathanmagnan.com).
// All rights reserved (http://jonathanmagnan.com/extension-methods-library).
// Licensed under MIT License (MIT) (http://zextensionmethods.codeplex.com/license).

using System;

#if EXTENSIONMETHODS_WITHNAMESPACE
namespace JHSoft.Extension.ExtensionMethods
{
#endif
#if EXTENSIONMETHODS_INTERNAL
    internal static partial class DoubleExtensions
#else
    public static partial class DoubleExtensions
#endif
    {
        /// <summary>
        ///     Returns the smallest integral value that is greater than or equal to the specified double-precision floating-
        ///     point number.
        /// </summary>
        /// <param name="a">A double-precision floating-point number.</param>
        /// <returns>
        ///     The smallest integral value that is greater than or equal to . If  is equal to , , or , that value is
        ///     returned. Note that this method returns a  instead of an integral type.
        /// </returns>
        public static Double Ceiling(this Double a)
        {
            return Math.Ceiling(a);
        }
    }
#if EXTENSIONMETHODS_WITHNAMESPACE
}
#endif